package com.xx.api.tcc;

import io.seata.rm.tcc.api.BusinessActionContext;
import io.seata.rm.tcc.api.LocalTCC;
import io.seata.rm.tcc.api.TwoPhaseBusinessAction;

@LocalTCC
public interface TccOrderService {

    @TwoPhaseBusinessAction(name = "ttry", commitMethod = "confirm", rollbackMethod = "cancel")
    boolean ttry(BusinessActionContext context);

    boolean confirm(BusinessActionContext context);

    boolean cancel(BusinessActionContext context);
}
